package com.isoft.uaaservice.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 *用户权限
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(exclude = {"children"})
@TableName("TMIM_SYSTEM.SYS_PERMISSION")
public class SysPermission implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String url;
    private String icon;
    private Integer parentid;
    private Integer orderid;
    private Integer status;
    private String description;

    @TableField(exist = false)
    private List<SysPermission> children;

}
